<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@include file="../../mytags.jsp" %>

<t:base type="jquery"></t:base>
<script type="text/javascript" src="${webRoot}js/jquery.raty.js"></script>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>其他评价</title>
    <style>
        .c6 div {
            line-height: 30px;
        }

        .pj {
            width: 46%;
            float: left
        }

        .pj span {
            font-size: 12px;
        }
    </style>
</head>
<body>
<div class="mui-clearfix"></div>
<div class="scor mui-clearfix" style="margin-top:1px;">
    <div class="mui-row">
        <div class="mui-col-sm-6 c6 cell1">
            <span>影院名称</span>
            <div>${zyCinemaName}</div>
        </div>
        <div class="mui-col-sm-6 c6 cell1">
            <span>影院地址</span>
            <div>${zyCinemaAddress}</div>
        </div>
        <div class="mui-col-sm-6 c6 cell1">
            <span>服务类型</span>
            <div><t:dictSelect field="busType" type="span" defaultVal="${evaluate.busType}"
                               typeGroupCode="<%=StaticValue.DIC_EVALUATE_BUS_TYPE %>"></t:dictSelect></div>
        </div>
        <div class="mui-col-sm-6 c6 cell1">
            <span>完成时间</span>
            <div>${endTime}</div>
        </div>
        <div class="mui-col-sm-6 c6 cell1">
            <span>工程师</span>
            <div>${engineer}</div>
        </div>
        <div class="mui-col-sm-6 c6 cell1">
            <span>服务商</span>
            <div>${departname}</div>
        </div>
    </div>
</div>

<div class="set2" style="margin-top:1px;">
    <ul class="mui-table-view view1">
        <li class="mui-table-view-cell cell1 c6">
            <span>总体评价</span>
            <div class="pfx">
                <h4>
                    <div id="lastEvaluate" class="raty"></div>
                    <%--<img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx1.png"><img src="${webRoot}images/pfxx1.png">--%>
                </h4>
                <div class="mui-clearfix"></div>
                <h3>5分制：1-很不满意;2-略有不满;3-一般;4-满意;5-非常满意</h3>
            </div>
        </li>
        <%--<li class="mui-table-view-cell cell1 c6">--%>
            <%--<hr style="border: none;border-top: 1px solid #dddddd;"/>--%>
        <%--</li>--%>
        <%--<li class="mui-table-view-cell cell1 c6">--%>
            <%--<div class="pj">--%>
                <%--<span>服务态度</span>--%>
                <%--<div class="pfx">--%>
                    <%--<h4>--%>
                        <%--<div id="serviceEvaluate" class="raty"></div>--%>
                        <%--&lt;%&ndash;<img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx1.png"><img src="${webRoot}images/pfxx1.png">&ndash;%&gt;--%>
                    <%--</h4>--%>
                    <%--<div class="mui-clearfix"></div>--%>
                    <%--<h3>准时上门，仪容整洁并佩戴工牌；工作认真，态度礼貌</h3>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</li>--%>
        <%--<li class="mui-table-view-cell cell1 c6">--%>
            <%--<div class="pj">--%>
                <%--<span>沟通顺畅</span>--%>
                <%--<div class="pfx">--%>
                    <%--<h4>--%>
                        <%--<div id="talkEvaluate" class="raty"></div>--%>
                        <%--&lt;%&ndash;<img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png">&ndash;%&gt;--%>
                    <%--</h4>--%>
                    <%--<div class="mui-clearfix"></div>--%>
                    <%--<h3>告知客户相关巡检流程，认真解答客户问题</h3>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</li>--%>
        <%--<li class="mui-table-view-cell cell1 c6">--%>
            <%--<div class="pj">--%>
                <%--<span>巡检效果</span>--%>
                <%--<div class="pfx">--%>
                    <%--<h4>--%>
                        <%--<div id="effectEvaluate" class="raty"></div>--%>
                        <%--&lt;%&ndash;<img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx1.png">&ndash;%&gt;--%>
                    <%--</h4>--%>
                    <%--<div class="mui-clearfix"></div>--%>
                    <%--<h3>完成全部巡检内容，巡检效果明显</h3>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</li>--%>
        <%--<li class="mui-table-view-cell cell1 c6">--%>
            <%--<div class="pj">--%>
                <%--<span>培训效果</span>--%>
                <%--<div class="pfx">--%>
                    <%--<h4>--%>
                        <%--<div id="trainEvaluate" class="raty"></div>--%>
                        <%--&lt;%&ndash;<img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx1.png"><img src="${webRoot}images/pfxx1.png">&ndash;%&gt;--%>
                    <%--</h4>--%>
                    <%--<div class="mui-clearfix"></div>--%>
                    <%--<h3>培训全面、讲解清楚</h3>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</li>--%>
        <%--<li class="mui-table-view-cell cell1 c6">--%>
            <%--<div class="pj">--%>
                <%--<span>技能</span>--%>
                <%--<div class="pfx">--%>
                    <%--<h4>--%>
                        <%--<div id="skillEvaluate" class="raty"></div>--%>
                        <%--&lt;%&ndash;<img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png"><img src="${webRoot}images/pfxx.png">&ndash;%&gt;--%>
                    <%--</h4>--%>
                    <%--<div class="mui-clearfix"></div>--%>
                    <%--<h3>对巡检结果进行说明，提出专业维护建议</h3>--%>
                <%--</div>--%>
            <%--</div>--%>
        <%--</li>--%>
    </ul>
</div>
<div class="set2" style="margin-top:1px;">
    <ul class="mui-table-view view1">
        <li class="mui-table-view-cell cell1 c6">
            <span>评语</span>
            <t:formvalid formid="evaForm" dialog="true" usePlugin="password" layout="table"
                         action="inspectionWx.do?doEvalute" tiptype="3">
                <input type="hidden" name="inspection.id" value="${evaluate.inspection.id}"/>
                <input type="hidden" name="id" value="${evaluate.id}"/>
                <input type="hidden" id="evaluateState" name="evaluateState" value="${evaluate.evaluateState}"/>
                <input type="hidden" name="lastEvaluate" value="${evaluate.lastEvaluate}"/>
                <input type="hidden" name="serviceEvaluate" value="${evaluate.serviceEvaluate}"/>
                <input type="hidden" name="talkEvaluate" value="${evaluate.talkEvaluate}"/>
                <input type="hidden" name="effectEvaluate" value="${evaluate.effectEvaluate}"/>
                <input type="hidden" name="trainEvaluate" value="${evaluate.trainEvaluate}"/>
                <input type="hidden" name="skillEvaluate" value="${evaluate.skillEvaluate}"/>
                <input type="hidden" name="busType" value="type_4"/>
                <input type="hidden" name="evaluateType" value="<%=StaticValue.DIC_EVALUATE_TYPE_HD %>"/>
                <div class="pfx">
                    <textarea style="width: 96%;font-size: 14px;height: 95px;color:black" name="opinion">${evaluate.opinion}</textarea>
                </div>
            </t:formvalid>
        </li>
    </ul>
</div>
</body>
<script type="text/javascript" charset="utf-8">
    /*function submit(){
     var mask = mui.createMask(function(){
     return false;
     });
     mask.show();
     $.post('inspectionWx.do?doEvalute&'+$("#evaForm").serialize(),{},function(data){
     if(!$.isEmptyObject(data)){
     data = $.parseJSON(data);
     if(data.success){
     mui.toast("感谢您的评价");
     setTimeout(function(){
     mui.openWindow({
     createNew : true,
     url : "inspectionWx.do?goMyInspectionList"
     });
     },2000);
     }else{
     mask.close();
     }
     }
     })
     }*/
    $(function () {
        mui.init();
        $.fn.raty.defaults.path = '${webRoot}js/img';
        $('.raty').each(function () {
            var inputText = $("input[name='" + $(this).attr("id") + "']");
            var inputScore = inputText.val();
            if(inputScore == '0'){
                inputScore = 5;
            }
            inputText. val(inputScore);
            $(this).raty({number:5,score:inputScore}).css("width",5*40).click(function(){
                inputText.val($(this).raty('score'));
            })
        })
    })
</script>
</html>
